﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HCQ2_Model.VRDD.OutputDto._0818
{
    /// <summary>
    ///  获取店铺关联节点
    /// </summary>
    public class OutputStoreId: StoreCourseResult
    {
        /// <summary>
        ///  子节点
        /// </summary>
       public List<OutputStoreId> Children { get; set; }
    }
    public class StoreCourseResult
    {
        /// <summary>
        ///  节点ID
        /// </summary>
        public int ID { get; set; }
        /// <summary>
        ///  节点名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        ///  节点path
        /// </summary>
        public string Path { get; set; }
        /// <summary>
        ///  节点备注
        /// </summary>
        public string Note { get; set; }
        /// <summary>
        ///  节点图标地址
        /// </summary>
        public string Icon { get; set; }
        /// <summary>
        ///  是否推荐
        /// </summary>
        public bool isPush { get; set; }
        /// <summary>
        ///  是否已关注
        /// </summary>
        public bool isFocus { get; set; }
        /// <summary>
        /// 被关注数
        /// </summary>
        public int focusNum { get; set; }
        /// <summary>
        ///  是否已点赞
        /// </summary>
        public bool isStar { get; set; }
        /// <summary>
        ///  点赞数
        /// </summary>
        public int starNum { get; set; }
        /// <summary>
        ///  父id
        /// </summary>
        public int folder_pid { get; set; }
        /// <summary>
        ///  序号
        /// </summary>
        public int? folder_order { get; set; }

        public OutputStoreId ToOutputStoreId()
        {
            return new OutputStoreId
            {
                ID = this.ID,
                Name = this.Name,
                Path = this.Note,
                Note = this.Note,
                Icon = this.Icon,
                isPush = this.isPush,
                isFocus = this.isFocus,
                focusNum = this.focusNum,
                isStar = this.isStar,
                starNum = this.starNum,
                folder_pid = this.folder_pid,
                folder_order=this.folder_order
            };
        }
    }
}